home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / MacSNMP / SNMP Agents Dev Kit / SNMP Interfaces / SNMPTypes.r < prev    next >
Encoding:
Text File  |  1994-11-21  |  2.1 KB  |  62 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SNMPtypes.r
  3.  
  4.     Contains:    SNMP resource type declarations
  5.  
  6.     Copyright:    © 1992 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10. /* ---------------------------------------------------------------------------------------------- */
  11. /* --------------------------------- Define Resource types here --------------------------------- */
  12. /* ---------------------------------------------------------------------------------------------- */
  13. #include "Types.r"
  14. #include "Systypes.r"
  15. #include "SNMPVarTypes.h"
  16.  
  17.  
  18. /******************************************************************************
  19.     Variable Description Resource.
  20.     
  21.     This resource is used to contain the information about the variables
  22.     to be registered.  
  23.     
  24.     Included in this resource is the resource id of the STR# resources which
  25.     contain the name strings and the description strings for the agent and
  26.     all of the variables. The data for each variable included in this resource
  27.     also contains the index into the name and description string resources.
  28. *******************************************************************************/
  29.  
  30. type 'vard' {
  31.     unsigned integer;                            /* Name resource id              */
  32.     unsigned integer;                            /* Desc resource id              */
  33.     unsigned integer;                            /* Index of agent's desc string */
  34.     
  35.     
  36.     unsigned integer = $$CountOf(grouparray);         /* Group array size                      */
  37.     wide array grouparray {
  38.         unsigned integer;                            /* index for group's strings          */
  39.         unsigned integer = $$CountOf(G_OIDarray);     /* OID array size                      */
  40.         wide array G_OIDarray {
  41.             unsigned longint;                        /* Object id                           */
  42.         };
  43.     };         
  44.     
  45.     
  46.     unsigned integer = $$CountOf(Var);                  /* Variable array size        */
  47.     wide array Var {
  48.         integer;                                     /* index for Var strings      */
  49.         unsigned longint;                             /* ASNTagType                 */
  50.         unsigned integer;                             /* SMI Access  (size ??)   */
  51.         integer;                                     /* user data 1                */
  52.         integer;                                     /* user data 2              */
  53.         longint;                                     /* user data 3                */
  54.         unsigned integer = $$CountOf(IVar_OIDarray); /* OID array size            */
  55.         wide array IVar_OIDarray {
  56.             unsigned longint;                         /* Object id               */
  57.         };
  58.     }; 
  59.  
  60. };
  61.  
  62.